import { IsNumber, IsString } from 'class-validator'

export class LoginDto {
  @IsString()
  name: string
  @IsString()
  password: string
  @IsString()
  verifyCode?: string
  @IsNumber()
  expiresInDays?: number
}

export class ChangePasswordDto {
  @IsString()
  readonly oldPassword: string
  @IsString()
  readonly newPassword: string
}
